package com.ruoyi.paint.admin.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

/**
 * 色母表
 * @TableName tq_tints
 */
@TableName(value ="tq_tints")
@Data
public class TqTints  implements Serializable {
    /**
     * 色母ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 色母代号
     */
    private String tintCode;

    /**
     * 色母名称
     */
    private String tintName;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    private String delFlag;


    @TableField(fill = FieldFill.INSERT)
    private Date createTime; // 创建时间

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime; // 更新时间

    @TableField(fill = FieldFill.INSERT)
    private String createBy; // 创建人

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy; // 更新人
    private String remark;



    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TqTints other = (TqTints) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getTintCode() == null ? other.getTintCode() == null : this.getTintCode().equals(other.getTintCode()))
            && (this.getTintName() == null ? other.getTintName() == null : this.getTintName().equals(other.getTintName()))
            && (this.getDelFlag() == null ? other.getDelFlag() == null : this.getDelFlag().equals(other.getDelFlag()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateBy() == null ? other.getUpdateBy() == null : this.getUpdateBy().equals(other.getUpdateBy()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getTintCode() == null) ? 0 : getTintCode().hashCode());
        result = prime * result + ((getTintName() == null) ? 0 : getTintName().hashCode());
        result = prime * result + ((getDelFlag() == null) ? 0 : getDelFlag().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateBy() == null) ? 0 : getUpdateBy().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        return result;
    }


}